import http from "@/utils/request";

export default {
      /**
     * 查询列表
     * @param  params
     * @returns
     */
    // 获取测试报表信息列表
    async getCsbbList(pageNo,pageSize,approveStatus,startDate,endDate) {
      return await http.get("/api/csbb/list", {pageNo,pageSize,approveStatus,startDate,endDate});
    },
    /**
    * 添加
    * @returns
    */
    // 新增测试报表信息
    async addCsbb(params) {
      return await http.post("/api/csbb/add", params);
    },
     /**
    * 修改
    * @returns
    */
    // 编辑测试报表信息
    async updateCsbb(params) {
      return await http.put("/api/csbb/update", params);
    },

    //上传文件
    async importExcel(myfile){
      // console.log(29999999);
      console.log(myfile.get("myfile"));

      return await http.upload("/api/fileAbout/fileUpload",{myfile})
    },
    //导入文件
    async batchImportExcel(filePath){
      // console.log(typeof(filePath));
      // console.log(filePath.get("filePath"));
      return await http.upload("/api/csbb/batchInput",{filePath})
    },
  //删除
  async delete(params) {
    return await http.delete('/api/csbb/delete', params);
  },
  };
